﻿using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Serialization;

namespace HeThongThongTin.Library
{
    [Serializable()]
    public class DM_CapNganhInfo : ReadOnlyBase<DM_CapNganhInfo>
    {
        #region Business methods
        private static PropertyInfo<int> KhoaProperty = RegisterProperty<int>(p => p.Khoa);
        public int Khoa
        {
            get { return ReadProperty(KhoaProperty); }
            private set { LoadProperty(KhoaProperty, value); }
        }

        private static PropertyInfo<string> MaProperty = RegisterProperty<string>(p => p.Ma, "Ma");
        public string Ma
        {
            get { return ReadProperty(MaProperty); }
            private set { LoadProperty(MaProperty, value); }
        }

        private static PropertyInfo<string> TenProperty = RegisterProperty<string>(p => p.Ten, "Ten");
        public string Ten
        {
            get { return ReadProperty(TenProperty); }
            private set { LoadProperty(TenProperty, value); }
        }


        private static PropertyInfo<string> GhiChuProperty = RegisterProperty<string>(p => p.GhiChu, "GhiChu");
        public string GhiChu
        {
            get { return ReadProperty(GhiChuProperty); }
            private set { LoadProperty(GhiChuProperty, value); }
        }



        public DM_CapNganhInfo()
        { /* require by MobileFormatter */ }

        internal DM_CapNganhInfo(int Khoa, string Ma, string Ten, string GhiChu)
        {
            this.Khoa = Khoa;
            this.Ma = Ma;
            this.Ten = Ten;
            this.GhiChu = GhiChu;

        }

        internal DM_CapNganhInfo(int Khoa, string Ma, string Ten)
        {
            this.Khoa = Khoa;
            this.Ma = Ma;
            this.Ten = Ten;

        }

        #endregion
    }
}

